module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    
    const conn = app.mongooseDB.get('db1'); 
   
    const Top250Schema = new Schema({
      pic: { type: String  },
      title: { type: String  },
      slogo: { type: String  },
      evaluate: { type: String  },
      labels: { type: Array  },
      rating: { type: String  },
      collected: { type: Boolean  },
    });
   
    return conn.model('Top250', Top250Schema,'top250');
  }
  